﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 修改装备目录字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Name",
                table: "FileClass",
                newName: "name");

            migrationBuilder.RenameColumn(
                name: "FileUrl",
                table: "FileClass",
                newName: "url");

            migrationBuilder.AddColumn<string>(
                name: "EquipmentType",
                table: "TMaterialCategories",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Manufacturer",
                table: "TMaterialCategories",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UnitName",
                table: "TMaterialCategories",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "EquipmentType",
                table: "TMaterialCategories");

            migrationBuilder.DropColumn(
                name: "Manufacturer",
                table: "TMaterialCategories");

            migrationBuilder.DropColumn(
                name: "UnitName",
                table: "TMaterialCategories");

            migrationBuilder.RenameColumn(
                name: "name",
                table: "FileClass",
                newName: "Name");

            migrationBuilder.RenameColumn(
                name: "url",
                table: "FileClass",
                newName: "FileUrl");
        }
    }
}
